/*
 * @Author: 31309 3130945@qq.com
 * @Date: 2024-08-05 14:14:37
 * @LastEditors: 31309 3130945@qq.com
 * @LastEditTime: 2024-08-06 17:35:04
 * @FilePath: \zframework\src\router\router.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
export const constantRoute = [
  {
    //登录
    path: "/login",
    component: () => import("@/views/login/login.vue"),
    name: "login",
  },
  {
    //登录
    path: "/",
    component: () => import("@/views/login/login.vue"),
  },
  {
    //首页
    path: "/home",
    component: () => import("@/views/home/home.vue"),
    name: "home",
  },

  {
    //用户管理
    path: "/SYS/USER",
    component: () => import("@/views/sys/user/user.vue"),
    name: "user",
  },

  {
    //菜单管理
    path: "/SYS/MENU",
    component: () => import("@/views/sys/menu/menu.vue"),
    name: "menu",
  },
  {
    //菜单管理
    path: "/SYS/CONFIG",
    component: () => import("@/views/sys/config/configs.vue"),
    name: "configs",
  },
  {
    //角色管理
    path: "/SYS/ROLE",
    component: () => import("@/views/sys/role/role.vue"),
    name: "role",
  },
  {
    //部门管理
    path: "/SYS/DEPARTMENT",
    component: () => import("@/views/sys/department/department.vue"),
    name: "department",
  },
  {
    //岗位管理
    path: "/SYS/POST",
    component: () => import("@/views/sys/post/post.vue"),
    name: "post",
  },

  {
    //首页
    path: "/:pathMatch(.*)*",
    redirect: "/404",
    name: "Any",
  },
];
